#include <iostream>

using namespace std;

class Rect{
    public:
    Rect(int _w,int _h){

        cout<<"矩形的宽为："<<_w<<"矩形的高为:"<<_h<<endl;
        w = _w; h = _h;
    }
     void show(){
        cout<<w<<endl;
        cout<<h<<endl;

    }
    private:
    int w;
    int h;
};


int main(int argc, char const *argv[])
{
    Rect c1(8,6);
    Rect c2 = c1;
    c2.show();
    return 0;
}
